import { Controller, Get, SetMetadata } from '@nestjs/common';
import { AppService } from './app.service';
import { ApiBearerAuth, ApiExcludeController, ApiTags } from '@nestjs/swagger';

// @ApiExcludeController()
@ApiTags("Permission-Test")
@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  // @Get()
  // getHello(){
  //   return 'abc'
  // }

  @Get('ccc')
  @ApiBearerAuth()
  @SetMetadata('login',true)
  @SetMetadata('permission',['ccc'])
  ccc(): string {
     return 'ccc'
  }

  @Get('ddd')
  @ApiBearerAuth()
  @SetMetadata('login',true)
  @SetMetadata('permission',['ddd'])
  ddd(): string {
     return 'ddd'
  }

}
